package com.neu.yth.nepBackend.entity;

/**
 * @ClassName SysNode
 * @Description
 * @Author YTH
 * @Date 2024-06-14 14:11
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 系统功能节点树
 * </p>
 *
 * @author YTH
 * @since 2024-06-14
 */
@Getter
@Setter
@TableName("sys_node")
@ApiModel(value = "SysNode对象", description = "系统功能节点树")
public class SysNode implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("节点的编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("父节点的ID")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty("节点的导航路径")
    @TableField("path")
    private String path;

    @ApiModelProperty("备注，功能说明")
    @TableField("remark")
    private String remark;

    @TableField("state")
    private Integer state;

    @TableField(exist = false)
    private List<SysNode> children;
}
